#include "imageclickable.h"

ImageClickable::ImageClickable(QLabel *parent) :
    QLabel(parent)
{
    setScaledContents(true);
}

void ImageClickable::mousePressEvent(QMouseEvent *ev)
{
    emit clicked(ev);
}

void ImageClickable::mouseDoubleClickEvent(QMouseEvent *event)
{
    emit doubleClicked(event);
}

void ImageClickable::mouseMoveEvent(QMouseEvent *event)
{
    emit mouseMoved(event);
}

void ImageClickable::mouseReleaseEvent(QMouseEvent *event)
{
    emit mouseReleased(event);
}
